package com.project.client.dto;

import com.project.common.utils.treenode.TreeNode;
import com.project.common.utils.treenode.TreeNodeType;

import java.util.List;

public class AreaInfoTreenode {

    @TreeNode(TreeNodeType.ID)
    private Long id;

    //父类id
    @TreeNode(TreeNodeType.ParentId)
    private Long parentId;

    //编码
    private String areaCode;

    //级别
    private Long areaLevel;

    //名字
    private String areaName;

    //前端使用的简称
    private String areaKey;

    //拼音
    private String pinyin;

    //字母
    private String letter;

    @TreeNode(TreeNodeType.Children)
    private List<AreaInfoTreenode> children;


    public String getAreaKey() {
        return areaKey;
    }

    public void setAreaKey(String areaKey) {
        this.areaKey = areaKey;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public Long getAreaLevel() {
        return areaLevel;
    }

    public void setAreaLevel(Long areaLevel) {
        this.areaLevel = areaLevel;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getLetter() {
        return letter;
    }

    public void setLetter(String letter) {
        this.letter = letter;
    }

    public List<AreaInfoTreenode> getChildren() {
        return children;
    }

    public void setChildren(List<AreaInfoTreenode> children) {
        this.children = children;
    }
}
